package com.changli04._set.exer2;

import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;

public class RandintSetTest {


    public static void main(String[] args) {
        List list = new ArrayList();
        for (int i = 0; i < 10; i++) {
            int random = (int)(Math.random()*20+1);
            list.add(random);

        }
        System.out.println(list);
        HashSet set = new HashSet(list);
        System.out.println(set);
    }
}
